﻿using Abp.Domain.Entities;
using shenghua.Common.CustomValueType;
using shenghua.Common.WordNodes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.FileSystem
{
    public class FileItem : WordNode
    {
        public long UserId { get; set; }
        public FileItemType Type { get; set; }
        public ValueArray<string> Labels { get; set; }
        public long Size { get; set; }
        public string Path { get; set; }
        public string Url
        {
            get
            {
                return Path;
            }
        }
        public bool IsFolder { get; set; }

        public FileItem()
        {
            Labels = new ValueArray<string>();
        }
    }

    public enum FileItemType
    {
        All = 0,
        Images = 1,
        Document = 2
    }
}
